﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddReference.aspx.cs" Inherits="Admin_AddReference" Title="Admin ~ Reference" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table cellpadding="0" cellspacing="0" width="100%">
         <tr>
            <td align="center" style="width:100%">
                <table cellpadding="0" cellspacing="0" width="900">
                   <tr>
                        <td align="center" valign="top">
                            <uc1:Header ID="Header2" runat="server" />
                        </td>
                    </tr>                                                   
                    <tr>
                        <td align="center" style="width:100%;">        
                            <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                               <tr>
                                   <td colspan="2" align="left" >
                                    <table >
                                        <tr>
                                         <td class="adminHeading" >Reference</td>
                                         <td><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server"></asp:Label></td>                                          
                                        </tr>
                                    </table>
                                   </td>                                    
                                </tr> 
                                                                                             
                               <tr>
                                    <td align="left">
                                        <table>
                                            <tr>
                                                <td>
                                                    <table>
                                                     
                                                          <tr id="trAddReferenceTextbox" runat="server">
                                                        <td>
                                                            <table >
                                                                <tr class="altanateAshBkg" id="tr1" runat="server" visible="false" >
                                                            <td class='label' style="width: 120px">ReferenceId</td>
                                                            <td><asp:TextBox ID="txtReferenceID" runat="server" cssclass='textBox' Width='250px' MaxLength="50"></asp:TextBox></td>
                                                       </tr> 
                                                       <tr class="ashBkg">
                                                            <td class="label">Author<span class='adminAsterix'>*</span></td>
                                                            <td style="height: 25px"><asp:TextBox ID="txtAuthor" runat="server" 
                                                                    cssclass='textBox' MaxLength="500" TextMode="MultiLine" Height="104px" 
                                                                    Width="720px"></asp:TextBox></td>
                                                        </tr> 
                                                    
                                                        <tr class="altanateAshBkg">
                                                            <td class='label'>Citation<span class='adminAsterix'> *</span></td>
                                                            <td><asp:TextBox ID="txtCitation" runat="server"  cssclass='textBox' Width='721px' MaxLength="500" Height="116px" TextMode="MultiLine"></asp:TextBox></td>
                                                        </tr>   
                                                      
                                                        <tr class="ashBkg">
                                                            <td class='label'>Organization<span class='adminAsterix'> *</span></td>
                                                            <td>
                                                                <asp:TextBox ID="txtOraganization" runat="server" cssclass='textBox' 
                                    Width='721px' MaxLength="500" Height="96px" TextMode="MultiLine"></asp:TextBox></td>
                                                        </tr>
                                                        
                                                            </table>
                                                        </td>
                                                    </tr>                                          
                                                       
                                                       
                                                          <tr>
                                                            <td colspan="3">
                                                                <table>
                                                                    <tr>
                                                                        <td> 
                                                                        <asp:Button ID="btnSave" runat="server" Height="31px" Text="Save" 
                                                                                Width="68px" onclick="btnSave_Click1" BackColor="#339933" 
                                                                                BorderStyle="Solid" ForeColor="White" /> </td>
                                                                       
                                                                        <td align="right"   >
                                                                        
                                                                            <asp:Button ID="btnAddExperimentData" runat="server" Height="35px" onclick="btnAddExperimentData_Click" 
                                                                                Text="Add Experiment Related Data" Width="175px" BackColor="#339933" 
                                                                                BorderStyle="Solid" ForeColor="White" Visible="False" />
                                                                        
                                                                        </td>
                                                                        <td>
                                                                        
                                                                            <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/Home.aspx">HOME</asp:HyperLink>
                                                                        
                                                                        </td>
                                                                        
                                                                        <td>
                                                                        
                                                                            <asp:Button ID="btnEdit" runat="server" BackColor="#339933" BorderStyle="Solid" 
                                                                                ForeColor="White" onclick="btnEdit_Click" Text="Edit Refernece" 
                                                                                Visible="False" />
                                                                        
                                                                        </td>
                                                                        
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        
                                                        </tr>
                                                        
                                                    </table>                                        
                                                </td>
                                              </tr>
                                        </table>
                                    </td>
                                </tr> 
                                
                               <tr id="trAddReference" runat="server" visible="false" valign="top" >
                                    <td align="center" style="padding-left:5px;">
                                        <asp:GridView  Width="880px" AllowSorting="true" 
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgReference" 
                                            runat="server" onpageindexchanging="dgReference_PageIndexChanging" 
                                            PageSize="5">
                                            <Columns>                                            
                                                <asp:BoundField  DataField="ref_id" HeaderText="Id"/>
                                                <asp:BoundField  DataField="author" HeaderText="Author"/>
                                                <asp:BoundField  DataField="citation" HeaderText="Citation" />
                                                <asp:BoundField  DataField="organizations" HeaderText="Organization" />
                                             </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                                                             
                                        </asp:GridView>
                                    </td>
                                </tr>
                                
                            </table>
                        </td>        
                    </tr>
                    
                    <tr>
                        <td style="height:10px">
                            <uc3:Footer ID="Footer2" runat="server" />
                        </td>
                   </tr> 
                    
                </table>
             </td> 
           </tr> 
</table>
</asp:Content>

